<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/9/14/014
  Time: 18:19
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>九九乘法表</title>
    <script type="text/javascript" src="${pageContext.request.contextPath}/lib/js/jquery3.6.0.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/lib/js/bootstrap.js"></script>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/lib/css/bootstrap.css">
</head>
<body>
<table  class="table table-bordered">

    <%
        for (int i = 1; i < 10; i++) {
            out.write("<tr>");
            for (int j = 1; j <= i; j++) {
                out.write("<td>" + j + "x" + i + "=" + (i * j) + "</td>");
            }
            out.write("</tr>");
        }
    %>
</table>

</body>
</html>
